<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="MenuTable">

    <div class="layui-card-body">
        {if !empty($goods['id']) }
        <fieldset class="layui-elem-field layui-field-title">
            <legend>{$goods['name']}入库 </legend>
        </fieldset>
        {/if}
       
        {if $goods.status}
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('果片日期')}</label>
            <div class="layui-input-block">
                <select name="slice_id" lay-search>
                    {foreach $slices as $key=>$slice}
                    <option value="{$slice.id}" >{$slice.create_date}日{$slice.box_num}桶|次品{$slice.other_box_num}桶</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {/if}
        
        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('重量')}</label>
            <div class="layui-input-block">
                <input name="num" placeholder="请输入(kg)" value="" required class="layui-input">
        
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('备注')}</label>
            <div class="layui-input-block">
                <input name="note" placeholder="请输入" value=""  class="layui-input">
        
            </div>
        </div>

        
    </div>

    <div class="hr-line-dashed"></div>
    <input type='hidden' value='2' name='type'>
    <input type='hidden' value='{$goods_id}' name='goods_id'>
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}"
            data-close>{:lang('取消编辑')}</button>
    </div>
</form>

<script>
    
</script>